package communication;

import java.io.Serializable;

public class ConnectResponse implements Serializable{

	/**
	 * 
	 */
	
	private static final long serialVersionUID = -5817788146156035743L;
	final public static int RESP_REGISTER_OK = 1;
	final public static int RESP_REGISTER_USERNAME_ALREADY_EXISTS = 2;
	final public static int RESP_REGISTER_ERROR = 3;
	final public static int RESP_LOGIN_OK = 4;
	final public static int RESP_LOGIN_INVALID = 5;
	final public static int RESP_LOGIN_ALREADY_LOGGED = 6;
	final public static int RESP_LOGIN_FULL = 7;
	final public static int RESP_INVALID_REQUEST = 0;
	
	private int response;

	
	public ConnectResponse(int response) {
		super();
		this.response = response;
	}

	public int getResponse() {
		return response;
	}

	public void setResponse(int response) {
		this.response = response;
	}
	
}
